﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class RegisterMsg
    {
        public string Name { get; set; }
        public string User { get; set; }
        public string Pwd { get; set; }
        public string UseUnit { get; set; }
    }

    public class RegisterMsgReturn
    {
        public string Name { get; set; }
        public RegisterMsgReturnData Data { get; set; }
        public int Code { get; set; }
        public string Message { get; set; }
    }
    public class RegisterMsgReturnData
    {
        public string User { get; set; }
        public string Pwd { get; set; }
        public string Session { get; set; }
        public int ProjectID { get; set; }
    }

    public class RefreshSessionMsg
    {
        public string Name { get; set; }
        public string User { get; set; }
        public string Pwd { get; set; }
    }
    public class RefreshSessionMsgReturn
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public int Code { get; set; }
        public string Message { get; set; }
    }

    public class AddPersonMsg
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public AddPersonMsgData Data { get; set; }
    }
    public class AddPersonMsgData
    {
        public string PersonName { get; set; }
        public string PersonType { get; set; }
        public string Phone { get; set; }
        public string CertificateNO { get; set; }
        public int ProjectID { get; set; }
        public string CardNO { get; set; }
        public string FacePicture { get; set; }
        public List<AddPersonMsgAuthData> AuthData { get; set; }
    }
    public class AddPersonMsgAuthData
    {
        public string UnitName { get; set; }
        public string RoomName { get; set; }
        public string ElevatorName { get; set; }
        public string FloorInfo { get; set; }
        public string pFloorInfo { get; set; }
        public string AuthFloor { get; set; }
        public string StartTime { get; set; }
        public string EndTime { get; set; }
        public string DeviceIP { get; set; }
    }
    public class AddPersonMsgReturn
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public string PersonUUid { get; set; }
        public int Code { get; set; }
        public string Message { get; set; }
    }

    public class UpdatePersonMsg
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public UpdatePersonMsgData Data { get; set; }
    }
    public class UpdatePersonMsgData
    {
        public string PersonUuid { get; set; }
        public string PersonName { get; set; }
        public string PersonType { get; set; }
        public string Phone { get; set; }
        public string CertificateNO { get; set; }
        public int ProjectID { get; set; }
        public string CardNO { get; set; }
        public string FacePicture { get; set; }
        public List<UpdatePersonMsgAuthData> AuthData { get; set; }
    }
    public class UpdatePersonMsgAuthData
    {
        public string UnitName { get; set; }
        public string RoomName { get; set; }
        public string ElevatorName { get; set; }
        public string FloorInfo { get; set; }
        public string pFloorInfo { get; set; }
        public string AuthFloor { get; set; }
        public string StartTime { get; set; }
        public string EndTime { get; set; }
        public string DeviceIP { get; set; }
    }
    public class UpdatePersonMsgReturn
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public int Code { get; set; }
        public string Message { get; set; }
    }

    public class DeletePersonMsg
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public DeletePersonMsgData Data { get; set; }
    }
    public class DeletePersonMsgData
    {
        public string PersonUuid { get; set; }
        public string PersonName { get; set; }
        public string PersonType { get; set; }
        public string Phone { get; set; }
        public string CertificateNO { get; set; }
        public int ProjectID { get; set; }
        public string CardNO { get; set; }
        public string FacePicture { get; set; }
        public List<DeletePersonMsgAuthData> AuthData { get; set; }
    }
    public class DeletePersonMsgAuthData
    {
        public string UnitName { get; set; }
        public string RoomName { get; set; }
        public string ElevatorName { get; set; }
        public string FloorInfo { get; set; }
        public string pFloorInfo { get; set; }
        public string AuthFloor { get; set; }
        public string StartTime { get; set; }
        public string EndTime { get; set; }
        public string DeviceIP { get; set; }
    }
    public class DeletePersonMsgReturn
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public int Code { get; set; }
        public string Message { get; set; }
    }

    public class LiftModeMsg
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public LiftModeMsgData Data { get; set; }
    }
    public class LiftModeMsgData
    {
        public int ProjectID { get; set; }
        public string UnitName { get; set; }
        public string LiftName { get; set; }
        public int LiftMode { get; set; }
    }
    public class LiftModeMsgReturn
    {
        public string Name { get; set; }
        public string Session { get; set; }
        public int Code { get; set; }
        public string Message { get; set; }
    }
}
